package com.ruoyi.app.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

/**
 * APP任务评论业务对象 app_team_evaluate
 *
 * @author heike
 * @date 2023-08-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppTeamEvaluateBo extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long teamId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 评分
     */
    @NotNull(message = "评分不能为空", groups = {AddGroup.class, EditGroup.class})
    @Length(max = 5, min = 1, message = "评分区间1-5分")
    private Integer number;

    /**
     * 评论内容
     */
    private String context;


}
